//
//  MHSystemMessageCell.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/7/14.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHSystemMessageCell.h"
#import "MHSystemMessageItemViewModel.h"
@implementation MHSystemMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.timelable.font = MHRegularFont_10;
    self.contentLabel.font = MHRegularFont_14;
    self.contentView.backgroundColor = MH_MAIN_BACKGROUNDCOLOR_2;
    self.lookDetail.titleLabel.font = MHRegularFont_14;
    self.containerView.layer.cornerRadius = 6;
    self.containerView.masksToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)bindViewModel:(MHSystemMessageItemViewModel *)viewModel
{
    self.timelable.text = viewModel.model.created;
    self.contentLabel.text = viewModel.model.contentTxt;
    self.contentLabel.backgroundColor = [UIColor whiteColor];
    self.lookDetail.hidden = !viewModel.model.isJump;
    
}

@end
